/* 登录注册页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.auth-container {
    width: 100%;
    max-width: 520px;
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo h2 {
    font-size: 1.6rem;
    color: #333;
    font-weight: bold;
}

.auth-header h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 12px;
}

.auth-header p {
    color: #666;
    font-size: 1.05rem;
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 35px 45px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
}

/* 表单样式 */
.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input.error {
    border-color: #dc3545;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    background: #dc3545;
    width: 0%;
    transition: all 0.3s ease;
}

.strength-text {
    font-size: 0.85rem;
    color: #666;
}

/* 选项样式 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* 按钮样式 */
.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-top: 5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.auth-footer {
    text-align: center;
    margin-top: 18px;
}

.auth-footer p {
    color: #666;
    font-size: 0.9rem;
    margin: 5px 0;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* 社交登录 */
.social-login {
    margin-top: 20px;
}

.divider {
    text-align: center;
    position: relative;
    margin-bottom: 20px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 0.85rem;
    position: relative;
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #333;
}

.social-btn:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.social-btn.wechat:hover {
    border-color: #1aad19;
    background: #f0f9f0;
}

.social-btn.qq:hover {
    border-color: #12b7f5;
    background: #e6f8ff;
}

.social-icon {
    font-size: 1.3rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-container {
        max-width: 95%;
    }
    
    .auth-card {
        padding: 30px 30px;
    }
    
    .auth-header h1 {
        font-size: 1.8rem;
    }
    
    .auth-header {
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 8px;
        max-width: 100%;
    }
    
    .auth-card {
        padding: 25px 20px;
    }
    
    .auth-header h1 {
        font-size: 1.6rem;
    }
    
    .auth-header {
        margin-bottom: 18px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
    }
    
    .btn-primary {
        padding: 14px;
        font-size: 1.05rem;
    }
    
    .form-options {
        margin-bottom: 16px;
    }
    
    .auth-footer {
        margin-top: 15px;
    }
}

/* 成功提示 */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
    display: none;
    font-weight: 500;
    position: relative;
}

.success-message.show {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

.success-message::before {
    content: '✅';
    font-size: 1.3rem;
}

/* 错误横幅 */
.error-banner {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
    display: none;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.error-banner.show {
    display: flex;
    animation: slideDown 0.3s ease;
}

.error-icon {
    font-size: 1.3rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

